package fun.werfamily.wf.user.core;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityFilterAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication(scanBasePackages = {"fun.werfamily.wf.user.core", "fun.werfamily.wf.base"}
        ,exclude= {SecurityAutoConfiguration.class, ManagementWebSecurityAutoConfiguration.class, SecurityFilterAutoConfiguration.class})
@MapperScan(basePackages = "fun.werfamily.wf.user.core.infrastructure.mapper")
@EnableSwagger2
@EnableDiscoveryClient
@EnableCaching
public class WfUserCoreApplication {

    public static void main(String[] args) {
        SpringApplication.run(WfUserCoreApplication.class, args);
    }

}
